package com.sleep.satokendemo.listener;

import com.sleep.satokendemo.entry.DemoEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class LogService {

    @Async
    public void doLog(DemoEvent demoEvent){
        log.info("执行记录日志操作：{}", demoEvent.getMessage());
    }
}
